/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = frstat_module.h                                    */
/*  NOTE      =                                                    */
/*  DATE      = 2015/01/09 by guojq                                */
/*******************************************************************/
#ifndef __FRSTAT_MODULE_H_
#define __FRSTAT_MODULE_H_

int frstat_module_init(int);
void frstat_module_destory(void);

int frstat_module_add(u_short us_proto, int i_l7_proto
               , int i_requests, int i_responses, int i_succs, int i_fails);

int frstat_module_del(u_short us_proto, int i_l7_proto);

int frstat_module_get_info(int i_l7_proto
                         , unsigned long *p_ul_requests_all, unsigned long *p_ul_responses_all
                         , unsigned long *p_ul_succs_all, unsigned long *p_ul_fails_all
                         , unsigned long *p_ul_requests_avg, unsigned long *p_ul_responses_avg
                         , unsigned long *p_ul_succs_avg, unsigned long *p_ul_fails_avg);

void frstat_module_bps(void);
void frstat_module_output(char **pp_result);

#endif
